import store from "@/store";

import { computed } from "vue";

// 获取配置文件, 判断对应路由需要加载的文件模块
const work_ai_config = computed(() => {
  // TODO 测试结束需注释
  return store?.state?.shotstack?.work_ai_config || {shotstack_driver:'alionline'};
  // return {
  //   // shotstack_driver: "alionline",
  //   shotstack_driver: "1",
  // };
});

// 首页
const Home = () => import("../views/home/index.vue");

// 快鲸AI短视频- 首页
const WorkAIIndex = () => import("../views/work/workAIIndex.vue");
// const WorkAIIndex = () => import("../views/work/shotstack_AI.vue");

// 快鲸AI短视频- 首页
const WorkAI = () => import("../views/work/shotstack_AI.vue");

// 工作台
const Work = () => import("../views/work/index.vue");

// Chat(对话式创作-对话)
const Chat = () => import("../views/chat/index.vue");
// Chat(对话式创作-创作)
const Create = () => import("../views/create/index.vue");
// Chat(对话式创作-工具箱)
const Tools = () => import("../views/tools/index.vue");

// Scene(场景式创作-对话)
const Scene = () => import("../views/scene/index.vue");

// ApplicationHome(场景式创作-AI应用首页)
const ApplicationHome = () => import("../views/scene/ApplicationHome.vue");

// ApplicationHome(场景式创作-AI行业首页)
const IndustryHome = () => import("../views/scene/IndustryHome.vue");

// Scene(场景式创作-收藏)
const Collect = () => import("../views/scene/collect.vue");

// 工单
const Order = () => import("../views/order/index.vue");

// 会员中心
const Vip = () => import("../views/vip/index.vue");
// 开通会员
const ActivateMembership = () => import("../views/vip/activateMembership.vue");

//会员权益
const MemberBenefits = () => import("../views/vip/memberBenefits.vue");

// 团队详情
const TeamSetting = () => import("../views/team/TeamSetting.vue");

// ai绘画
const Paint = () => import("../views/paint/index.vue");
// 分类页
const Classify = () => import("../views/paint/classify.vue");

// 详情页
const Detail = () => import("../views/paint/detail.vue");

// 提示词:首页
const PromptsIndex = () => import("../views/prompts/index.vue");

// 提示词:列表页
const PromptsList = () => import("../views/prompts/promptsList.vue");

// 提示词:详情页
const PromptDetail = () => import("../views/prompts/promptDetail.vue");

// AI训练：知识库(数据列表)
const TrainingHome = () => import("../views/training/index.vue");

const TrainingSetting = () => import("../views/training/setting.vue");

const TrainingInfo = () => import("../views/training/info.vue");

const TrainingMembers = () => import("../views/training/members.vue");

const WikiData = () => import("../views/training/wikiData.vue");

// AI训练：知识库(管理列表)
const WikiList = () => import("../views/training/wikiList.vue");

const KnowledgeBase = () => import("../views/training/knowledgeBase/index.vue");

// 企业应用-列表
const CompanyAppList = () => import("../views/companyApp/index.vue");

// 企业应用-详情
const CompanyAppDetail = () => import("../views/companyApp/detail.vue");

// 企业应用-对话
const CompanyAppChat = () => import("../views/companyApp/chat.vue");

// 账号设置
const UserSetting = () => import("../views/home/userSetting.vue");

// 账号中心
const AccountCenter = () => import("../views/home/accountCenter/index.vue");

// 创作中心
const CreateCenter = () => import("../views/home/createCenter.vue");

// 我的创作
const myCreation = () => import("../views/myCreation/index.vue");

/** ShotstackLayout */
// 工作台
const Workbenche = () => import("../views/shotstack/Workbenche/index.vue");

// 数据中心
const Datacenter = () => import("../views/shotstack/Datacenter/index.vue");

// 工作台-学习中心
const LearningCenter = () =>
  import("../views/shotstack/Workbenche/LearningCenter.vue");

// 素材中心-项目库
const ShopList = () => import("../views/shotstack/MaterialCenter/ShopList.vue");

// 素材中心-素材库
const MaterialList = () =>
  import("../views/shotstack/MaterialCenter/MaterialList.vue");

// AI创作
// AI创作-场景创作中心
const SceneCenter = () =>
  import("../views/shotstack/AiCreation/SceneCenter.vue");

// AI创作-文案库
const Textlibrary = () =>
  import("../views/shotstack/AiCreation/Textlibrary.vue");

// AI创作-场景创作
const SceneCreation = () =>
  import("../views/shotstack/AiCreation/SceneCreation.vue");

// AI创作-场景作品分类列表
const SceneClassify = () =>
  import("../views/shotstack/AiCreation/SceneClassify.vue");

// AI创作-AI作图
const AiDraw = () => import("../views/shotstack/AiCreation/AiDraw.vue");
// AI创作-AI作图详情
const DrawDetail = () => import("../views/shotstack/AiCreation/DrawDetail.vue");
// 公共登录
const loginPage = () => import("../views/shotstack/loginPage/index.vue");

// 创作中心-智能剪辑
const IntelligentClipping = () =>
  import("../views/shotstack/CreationCenter/IntelligentClipping.vue");

//创作中心-视频混剪
const MixedCutIntroduction = () =>
  import("../views/shotstack/CreationCenter/MixedCutIntroduction.vue");

//创作中心-视频混剪
const MixedCutIntroductionDetail = () =>
  import("../views/shotstack/CreationCenter/MixedCutIntroductionDetail.vue");

//创作中心-图文剪辑
const GraphicEditing = () =>
  import("../views/shotstack/CreationCenter/GraphicEditing.vue");

//创作中心-智能脚本工具
const ScriptingTool = () =>
  import("../views/shotstack/CreationCenter/ScriptingTool.vue");

//创作中心-我的脚本
const ScriptSquare = () =>
  import("../views/shotstack/MuseMixedCut/mixedCutCreat/ScriptSquare.vue");
//创作中心-脚本广场
const templateScriptSquare = () =>
  import(
    "../views/shotstack/MuseMixedCut/mixedCutCreat/templateScriptSquare.vue"
  );
// 创作中心-脚本广场-另存并编辑
const templateScriptCopy = () =>
  import(
    "../views/shotstack/MuseMixedCut/mixedCutCreat/templateScriptCopy.vue"
  );

// 混剪页面
const MixedCutCreat = async () => {
  // return import("../views/shotstack/MuseMixedCut/mixedCutCreat/index.vue")
  return work_ai_config.value?.shotstack_driver == "alionline"
    ? import("../views/shotstack/MixedCutPlatforms/mixedCutCreat/index.vue")
    : import("../views/shotstack/MuseMixedCut/mixedCutCreat/index.vue");
};

// 混剪预览 - 公用同一个
const MixedCutPreview = async () => {
  return work_ai_config.value?.shotstack_driver == "alionline"
    ? import("../views/shotstack/MixedCutPreview/MixedCutPreview.vue")
    : import("../views/shotstack/MuseMixedCut/MixedCutPreview/MixedCutPreview.vue");
};

// 爆款文案库
const HotTextScript = () =>
  import("../views/shotstack/HotTextScript/index.vue");

// 创作中心 - 模板广场
const TemplateList = () =>
  import("../views/shotstack/CreationCenter/TemplateList.vue");

// 创作中心 - 弃用的图生视频
const FormworkSquareContent = () =>
  import("../views/shotstack/CreationCenter/FormworkSquareContent.vue");

// 新版的图生视频
const PictureCreatVideo = () =>
  import("../views/shotstack/PictureCreatVideo/index.vue");

// 创作中心 - 模板使用
const TemplateEditor = () =>
  import("../views/shotstack/MuseMixedCut/TemplateEditor/TemplateEditor.vue");

// 创作中心-创意工具
const CreativityTools = () =>
  import("../views/shotstack/CreationCenter/CreativityTools.vue");

// 创作中心-文字转语音
const TextToSpeech = () =>
  import("../views/shotstack/CreationCenter/TextToSpeech.vue");

// 创作中心-AI创作
const AiWriting = () =>
  import("../views/shotstack/CreationCenter/AiWriting.vue");

// 创作中心-视频智能拆分列表
const VideoIntelligentSplitList = () =>
  import("../views/shotstack/CreationCenter/VideoIntelligentSplitList.vue");

// 创作中心-新建视频智能拆分
const AddVideoIntelligentSplit = () =>
  import("../views/shotstack/CreationCenter/AddVideoIntelligentSplit.vue");

// 视频拆分页面
const VideoSplit = () =>
  import("../views/shotstack/CreationCenter/VideoSplit.vue");

// 创作中心-提取视频文字
const VideoToTextList = () =>
  import("../views/shotstack/CreationCenter/VideoToTextList.vue");

// 创作中心-新建提取视频文字
const AddVideoToText = () =>
  import("../views/shotstack/CreationCenter/AddVideoToText.vue");

// 创作中心-脚本库
const ScriptLibraryList = () =>
  import("../views/shotstack/CreationCenter/ScriptLibraryList.vue");

// 创作中心-成片合成
const Synthesis = () =>
  import("../views/shotstack/CreationCenter/Synthesis.vue");

// 创作中心-剪辑详情
const ClipDetail = () =>
  import("../views/shotstack/CreationCenter/ClipDetail.vue");

// 素材中心-成片库
const ComposeMaterial = () =>
  import("../views/shotstack/MaterialCenter/ComposeMaterial.vue");

// 微信管理-账号管理--新增
const WechatComposeMaterial = () =>
  import("../views/shotstack/wechatMarketing/WechatComposeMaterial.vue");

// 微信管理-智能发布--新增
const WechatReleaseList = () =>
  import("../views/shotstack/wechatMarketing/WechatReleaseList.vue");
// 微信管理-智能发布--新增
const WechatQrRelease = () =>
  import("../views/shotstack/wechatMarketing/QrRelease.vue");


// 素材中心-回收站
const RecycleBin = () =>
  import("../views/shotstack/MaterialCenter/RecycleBin.vue");

// 矩阵营销-成片发布
const ReleaseList = () =>
  import("../views/shotstack/MatrixMarketing/ReleaseList.vue");



// 矩阵营销-扫码发布
const QrRelease = () =>
  import("../views/shotstack/MatrixMarketing/QrRelease.vue");
// 矩阵营销-发布详情
const ReleaseDetail = () =>
  import("../views/shotstack/MatrixMarketing/ReleaseDetail.vue");

// 矩阵营销-账号管理
const IpManage = () =>
  import("../views/shotstack/MatrixMarketing/IpManage.vue");

// 矩阵营销-发布记录
const ReleaseRecord = () =>
  import("../views/shotstack/MatrixMarketing/ReleaseRecord.vue");

// 矩阵营销-账号中心
const ShotstackAccountCenter = () =>
  import("../views/shotstack/MatrixMarketing/AccountCenter.vue");
// 矩阵营销-下载页面
const Downloadpage = () =>
  import("../views/shotstack/MatrixMarketing/Downloadpage.vue");

// 爆店码
const BurstShop = () =>
  import("../views/shotstack/BurstShop/index.vue");

  // 爆店码
const BurstShopDetail = () =>
  import("../views/shotstack/BurstShop/BurstShopDetail.vue");

    // 爆店码明细
const BurstShopDetails = () =>
  import("../views/shotstack/BurstShop/BurstShopDetails.vue");


// 抖音转微信
const TiktoktoWechat = () =>
  import("../views/shotstack/TiktoktoWechat/index.vue");


// 新建抖转微
const Creatingdrainagetool = () =>
  import("../views/shotstack/TiktoktoWechat/Creatingdrainagetool.vue");

// 新建抖转微
const CreatCart = () =>
  import("../views/shotstack/TiktoktoWechat/CreatCart.vue");
// 矩阵营销-账号分组
const AccountGroupList = () =>
  import("../views/shotstack/MatrixMarketing/AccountGroupList.vue");

// 关键词管理-设置
// const KeywordSettings = () =>
//   import("../views/shotstack/MatrixMarketing/keywordSettings.vue");
// 关键词管理-词库
const KeywordThesaurus = () =>
  import("../views/shotstack/MatrixMarketing/keywordThesaurus.vue");
// 风险词管理-设置
const RiskWordSettings = () =>
  import("../views/shotstack/MatrixMarketing/RiskWordSettings.vue");
// 文案仿写
const TextImitation = () =>
  import("../views/shotstack/MatrixMarketing/TextImitation/index.vue");
// 文案仿写列表
const TextImitationList = () =>
  import(
    "../views/shotstack/MatrixMarketing/TextImitation/TextImitationList/index.vue"
  );
// 文案仿写详情
const CopywritingFissionDetail = () =>
  import(
    "../views/shotstack/MatrixMarketing/TextImitation/CopywritingFissionDetail/index.vue"
  );

// 个人中心-推广链接
const PromotionLink = () =>
  import("../views/shotstack/PersonalCenter/promotionLink.vue");
// 个人中心-账户中心
const BusinessRecord = () =>
  import("../views/shotstack/PersonalCenter/BusinessRecord.vue");

// 个人中心-充值中心
const VoucherCenter = () =>
  import("../views/shotstack/PersonalCenter/VoucherCenter.vue");
// 个人中心-邀请新用户
const InviteNewUsers = () =>
  import("../views/shotstack/PersonalCenter/InviteNewUsers.vue");
// 个人中心-员工管理
const Index = () => import("../views/shotstack/PersonalCenter/index.vue");

// 主体信息
const Info = () => import("../views/shotstack/Info/index.vue");

// 个人信息
const Userinfo = () => import("../views/shotstack/Userinfo/index.vue");

// 修改密码
const ChangePassword = () =>
  import("../views/shotstack/ChangePassword/index.vue");

// 下载中心
const Download = () => import("../views/shotstack/Download/index.vue");

// 剪辑中心
const EditingCenter = () =>
  import("../views/shotstack/EditingCenter/index.vue");

const EditingCenterPreview = () =>
  import("../views/shotstack/EditingCenterPreview/index.vue");

// 开始工作 页面
const StartWork = () => import("../views/shotstack/StartWork/index.vue");

// 公告列表
const NoticeList = () => import("../views/shotstack/NoticeList/index.vue");

// 文本预览
const TextPreview = () => import("../views/shotstack/TextPreview/index.vue");

// AI创作
const AiCreate = () => import("../views/shotstack/AiCreate/index.vue");

// 操作日志
const operateLog = () =>
  import("../views/shotstack/PersonalCenter/operateLog.vue");

//标签管理
const TagManage = () => import("../views/shotstack/tagManage/index.vue");

//标签管理
const ItemTag = () =>
  import("../views/shotstack/tagManage/components/ProjectTagList/index.vue");

// POL列表
const PoiList = () => import("../views/shotstack/MaterialCenter/PoiList.vue");
// 用户注册协议
const UseAgreement = () =>
  import("../components/ShotstackLoginModal/component/useAgreement.vue");
// 用户隐私协议
const PrivacyAgreement = () =>
  import("../components/ShotstackLoginModal/component/privacyAgreement.vue");

// 软件更新
const Updater = () => import("../views/updater/index.vue");

//私信评论
const CommentMessageConnect = () =>
  import("../views/shotstack/CommentMessage/index.vue");

const CommentMessagePlatformConnect = () =>
  import("../views/shotstack/CommentMessage/platform.vue");


const PlatformCommentMessageConnect = () =>
  import("../views/shotstack/CommentMessage/platform.vue");


// 自动回复
const CommentMessageAutomationList = () =>
  import("../views/shotstack/CommentMessage/index.vue");

//留资
const CommentMessageCustomerList = () =>
  import("../views/shotstack/CommentMessage/index.vue");
// 账号授权
const CommentMessageSettingAuthCenter = () =>
  import("../views/shotstack/CommentMessage/index.vue");

// 一键成片
const OneClickClip = () =>
  import("../views/shotstack/FastVideoGeneration/index.vue");

// 数字人
const AIdigitalHuman = () =>
  import("../views/shotstack/digitalHuman/AIdigitalHuman/index.vue");
// 数字人视频创作
const AIdigitalHumanCreatVideo = () =>
  import("../views/shotstack/digitalHuman/AIdigitalHumanCreatVideo/index.vue");

// 声音克隆
const SoundCloning = () =>
  import("../views/shotstack/digitalHuman/SoundCloning/index.vue");

// 新图文剪辑
const GraphicTextCut = () =>
  import("../views/shotstack/GraphicTextCut/index.vue");

// 新图文剪辑入口列表
const GraphicTextCutList = () =>
  import("../views/shotstack/GraphicTextCutList/index.vue");

// 新图文剪辑合成预览
const GraphicTextCutPreview = () =>
  import("../views/shotstack/GraphicTextCutPreview/index.vue");

// 创作中心-视频提取
const VideoExtractionIndex = () =>
  import("../views/shotstack/CreationCenter/VideoExtractionIndex.vue");

// 创作中心-视频提取记录
const VideoExtractionList = () =>
  import("../views/shotstack/CreationCenter/VideoExtractionList.vue");
// 创作中心-视频提取音频
const VideoExtractAudioIndex = () =>
  import("../views/shotstack/CreationCenter/VideoExtractAudioIndex.vue");

// 创作中心-视频提取音频记录
const VideoExtractAudioList = () =>
  import("../views/shotstack/CreationCenter/VideoExtractAudioList.vue");

// 创作中心-视频去音频
const VideoRemoveAudioIndex = () =>
  import("../views/shotstack/CreationCenter/VideoRemoveAudioIndex.vue");

// 创作中心-视频去音频记录
const VideoRemoveAudioList = () =>
  import("../views/shotstack/CreationCenter/VideoRemoveAudioList.vue");

// 创作中心-视频裁剪
const VideoCroppingIndex = () =>
  import("../views/shotstack/CreationCenter/VideoCroppingIndex.vue");
// 创作中心-视频裁剪记录
const VideoCroppingList = () =>
  import("../views/shotstack/CreationCenter/VideoCroppingList.vue");
// 创作中心-视频擦除字幕
const VideoRemoveSubtitlesIndex = () => import("../views/shotstack/CreationCenter/VideoRemoveSubtitlesIndex.vue");

// 创作中心-视频擦除字幕记录
const VideoRemoveSubtitlesList = () => import("../views/shotstack/CreationCenter/VideoRemoveSubtitlesList.vue");

// 创作中心-视频擦除标志
const VideoRemoveSignIndex = () => import("../views/shotstack/CreationCenter/VideoRemoveSignIndex.vue");

// 创作中心-视频擦除标志记录
const VideoRemoveSignList = () => import("../views/shotstack/CreationCenter/VideoRemoveSignList.vue");

// 数字人批量生成
const AIdigitalHumanMassProduction = () => import("../views/shotstack/digitalHuman/AIdigitalHumanMassProduction/index.vue");

// 创作中心-视频翻译
const VideoTranslateIndex = () => import("../views/shotstack/CreationCenter/VideoTranslateIndex.vue");
// 创作中心-视频翻译记录
const VideoTranslateList = () => import("../views/shotstack/CreationCenter/VideoTranslateList.vue");
// 创作中心-视频生成字幕
const VideoGenerateSubtitlesIndex = () => import("../views/shotstack/CreationCenter/VideoGenerateSubtitlesIndex.vue");
// 创作中心-视频生成字幕记录
const VideoGenerateSubtitlesList = () => import("../views/shotstack/CreationCenter/VideoGenerateSubtitlesList.vue");
const components = {
  AIdigitalHumanMassProduction,
  GraphicTextCutList,
  GraphicTextCutPreview,
  Updater,
  Home,
  WorkAIIndex,
  WorkAIIndex,
  WorkAI,
  Work,
  Chat,
  Collect,
  Scene,
  ApplicationHome,
  IndustryHome,
  Order,
  WikiData,
  WikiList,
  KnowledgeBase,
  Vip,
  ActivateMembership,
  MemberBenefits,
  TeamSetting,
  Create,
  Tools,
  Paint,
  Classify,
  Detail,
  PromptsIndex,
  PromptsList,
  PromptDetail,
  CompanyAppList,
  CompanyAppDetail,
  CompanyAppChat,
  TrainingHome,
  TrainingSetting,
  TrainingInfo,
  TrainingMembers,

  UserSetting,
  ShotstackAccountCenter,
  Downloadpage,
  CreateCenter,

  // 抖转微
  TiktoktoWechat,
  BurstShop,
  BurstShopDetail,
  BurstShopDetails,

  Creatingdrainagetool,
  CreatCart,

  myCreation,
  MixedCutIntroductionDetail,
  /** ShotstackLayout */
  Workbenche,
  Datacenter,
  ShopList,
  LearningCenter,
  MaterialList,

  IntelligentClipping,
  MixedCutIntroduction,
  ScriptingTool,
  GraphicEditing,

  TemplateList,
  TemplateEditor,
  FormworkSquareContent,
  PictureCreatVideo,

  CreativityTools,
  TextToSpeech,
  AiWriting,
  VideoIntelligentSplitList,
  AddVideoIntelligentSplit,
  VideoSplit,
  VideoToTextList,
  AddVideoToText,
  ScriptLibraryList,

  RecycleBin,
  ComposeMaterial,
  WechatComposeMaterial,//微信管理-账号管理--新增
  WechatReleaseList,//微信管理-智能发布--列表--新增
  WechatQrRelease,//微信管理-智能发布--表单--新增
  ReleaseList,
  QrRelease,
  ReleaseDetail,
  IpManage,
  ReleaseRecord,
  PromotionLink,
  BusinessRecord,
  VoucherCenter,
  InviteNewUsers,
  Index,
  Info,
  Userinfo,
  ChangePassword,
  Download,
  EditingCenter,
  EditingCenterPreview,
  Synthesis,
  AccountCenter,
  SceneCenter,
  Textlibrary,
  SceneCreation,
  AiDraw,
  SceneClassify,
  DrawDetail,
  ClipDetail,
  AccountGroupList,
  // KeywordSettings,
  KeywordThesaurus,
  RiskWordSettings,
  // 文案仿写
  TextImitation,
  // 仿写列表
  TextImitationList,
  // 文案仿写列表
  CopywritingFissionDetail,
  // 爆款文案库
  HotTextScript,
  StartWork,
  NoticeList,
  TextPreview,
  AiCreate,
  loginPage,
  operateLog,
  TagManage,
  MixedCutCreat,
  MixedCutPreview,
  ScriptSquare,
  templateScriptSquare,
  templateScriptCopy,
  PoiList,
  ItemTag,
  UseAgreement,
  PrivacyAgreement,
  CommentMessageConnect,
  CommentMessagePlatformConnect,
  CommentMessageAutomationList,
  CommentMessageCustomerList,
  CommentMessageSettingAuthCenter,
  PlatformCommentMessageConnect,
  OneClickClip,
  // 数字人
  AIdigitalHuman,
  // 数字人视频创作
  AIdigitalHumanCreatVideo,
  // 声音克隆
  SoundCloning,
  // 新图文剪辑
  GraphicTextCut,
  VideoExtractionIndex,
  VideoExtractionList,
  VideoCroppingIndex,
  VideoCroppingList,
  VideoExtractAudioIndex,
  VideoExtractAudioList,
  VideoRemoveAudioIndex,
  VideoRemoveAudioList,
  VideoRemoveSubtitlesIndex,
  VideoRemoveSubtitlesList,
  VideoRemoveSignIndex,
  VideoRemoveSignList,
  VideoTranslateIndex,
  VideoTranslateList,
  VideoGenerateSubtitlesIndex,
  VideoGenerateSubtitlesList,
};

export default components;
